package com.mk.dynamic.redis;

import lombok.Getter;
import lombok.Setter;
import java.util.Map;
import java.util.HashMap;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Setter
@Getter
@ConfigurationProperties(prefix = DynamicRedisProperties.PREFIX)
public class DynamicRedisProperties {

    public static final String PREFIX = "dms.dynamic.redis";

    private boolean enabled;

    private Map<String, RedisProperties> connection = new HashMap<>();
}
